home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15205 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: jaxnet.jaxnet.com!jax!garyg
  2. From: garyg@jax.jaxnet.com (Gary M. Greenberg)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Check if a file exists?
  5. Date: 17 Apr 1996 20:38:28 GMT
  6. Organization: Southeast Network Services, Inc.
  7. Message-ID: <4l3ks4$22j@jaxnet.jaxnet.com>
  8. NNTP-Posting-Host: jax.jaxnet.com
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Tarang Deshpande (tarang@willows.com) wrote:
  12. : Lawrence Kirby wrote:
  13. : > 
  14. : > In article <317261E6.31D0@spectratek.co.uk>
  15. : >            dean_darlison@spectratek.co.uk "Dean Darlison" writes:
  16. : > 
  17. : > >man access
  18. : > 
  19. : > If that works on your system then the contents should tell you that this
  20. : > function is inappropriate for the question asked.
  21. : > 
  22. : > --
  23. : > -----------------------------------------
  24. : > Lawrence Kirby | fred@genesis.demon.co.uk
  25. : > Wilts, England | 70734.126@compuserve.com
  26. : > -----------------------------------------
  27.  
  28.  
  29. : Under SUNOS 5.4, LINUX 1.1.46 and conforming to SVID, AT&T, POSIX, 
  30. : X/OPEN, and BSD 4.3
  31.  
  32. : #include <unistd.h>
  33. : int access (const char *path, int amode)
  34.  
  35. : where amode is F_OK then the function is used to test for existance.
  36.  
  37. Which is fine for UNIX (which I actually prefer), but this newsgroup
  38. if for C -- ANSI C -- discussion. And, therefore, access has no place here.
  39. Doesn't help if I'm developing something on a Macintosh.
  40. Probably also doesn't help on PC development.
  41.  
  42. The charter for this group states discussion is for the C language; there is
  43. only one C language ... that which is discussed in the ANSI C Standard. 
  44. And, it's not a matter of elitism (as has been posited in other threads).
  45.  
  46. gary    /* the Sorcerer's Apprentice */ 
  47.     Contribute to the Randal Schwartz Legal Defense Fund
  48.        Get FREE ANSI C E-Mail Management Source Code     
  49.      Visit: http://jax.jaxnet.com/~garyg/main_page.html
  50.